﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;//显示动画效果需要
using System.Drawing.Imaging;//保存位图需要
using System.Net;
using System.Net.Sockets;
using System.IO;

public static class MessageImport
{
    static MessageImport()
    {

    }
    //Import DLL for Message Transport
    [DllImport("User32.dll", EntryPoint = "SendMessage")]
    public static extern int SendMessage(
        IntPtr hWnd,//指向窗口的句柄
        int Msg, //传递的消息
        uint wParam,//w参数
        IntPtr lParam//l参数
        );
    [DllImport("User32.dll", EntryPoint = "PostMessage")]
    public static extern int PostMessage(
        IntPtr hWnd,
        int Msg,
        uint wParam,
        IntPtr lParam
        );
    //Dll Import finished
}

public static class MessageType
{
    static MessageType()
    {
    }
    public const int USER = 0x500;

    public const int MSG_STR = USER + 1;
    public const int MSG_ADDFRI = USER + 20;
    public const int BTN_SENDFILE = USER + 2;
    public const int BTN_SENDFILEDATA = USER + 17;
    public const int BTN_RECEIVEDATA = USER + 18;

    public const int BTN_FILESHARE = USER + 3;
    public const int BTN_OPENPANEL = USER + 4;
    public const int BTN_CLOSEPANEL = USER + 19;
    public const int BTN_CLEARPANEL = USER + 5;
    public const int BTN_PEN = USER + 6;
    public const int BTN_RANDOMPEN = USER + 7;
    public const int BTN_ERASER = USER + 8;
    public const int BTN_ROUND = USER + 9;
    public const int BTN_LINE = USER + 10;
    public const int BTN_SOLIDROUND = USER + 11;
    public const int BTN_RECT = USER + 12;
    public const int BTN_MULTIROUND = USER + 13;
   

    public const int PAT_COLOR = USER + 14;
    public const int PAT_WIDTH = USER + 15;
    public const int PAT_XY = USER + 16;
}

